const mongoose = require('./db');


const userSchema = new mongoose.Schema({

  name: {
    type: String,
  },
  sex: {
    type: Number,
    default: 0,
  }
})

const userModel = mongoose.model('user', userSchema, 'user');

// userModel.create({
//   name: '张三',
//   sex: 1,
// })
module.exports = { userModel }

